#include <stdio.h>

int main(){
    int c;
    c = getchar();
    printf("输入的字符为%d，%d\n", c, c != EOF);
    return 0;
}
// ctrl + c 得到EOF